﻿@model IEnumerable<SelectListItem>
<div class="editor-label">
    Group
</div>
@Html.DropDownList("Groups", Model)

<br />

<button id="create" class='btn'>Create</button>

<script>
    (function () {
        $("#create").click(function () {
            var group = $("#Groups")[0].value;
            var data = { Group: group };
            $.post("/User/CreateStudent", data);
        });
    })();
</script>
